﻿using System;
using System.Web;

/// <summary>
/// Base Page all asp.net pages should inherit from, to be able to run page_preinit with MasterPages.
/// </summary>
public class BasePage : System.Web.UI.Page
{
    public BasePage()
    {
        //added to constructor to tie below page_preinit to that of System page
        this.PreInit += new EventHandler(Page_PreInit);
    }
    protected void Page_PreInit(object sender, EventArgs e)
    {
        //HttpCookie preferredTheme = Request.Cookies.Get("PreferredTheme");
        //if (preferredTheme != null)
        //{
        //    Page.Theme = preferredTheme.Value;
        //}
    }
}